package com.neusoft.yuejian26.yuejian_26.Fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.neusoft.yuejian26.yuejian_26.Activity.PostActivity;
import com.neusoft.yuejian26.yuejian_26.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class ShareFragment extends Fragment {

    public View view = null;
    RecyclerView share_list;
    public ImageView post_share;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        view = inflater.inflate(R.layout.fragment_share, container, false);
        initview();
        return view;
    }

    private void initview(){
        post_share= (ImageView) view.findViewById(R.id.post_share);
        share_list= (RecyclerView) view.findViewById(R.id.share_list);
        post_share.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getContext(), PostActivity.class);
                startActivity(intent);
            }
        });
    }
}
